//
//  TicketList.h
//  pa
//
//  Created by HaiJiao Chen on 12-7-28.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ASINetworkQueue.h"
#import "AppDelegate.h"

UIKIT_EXTERN NSString *const DRIVER_NOTE;
//UIKIT_EXTERN NSString *const ADD_WATER_BY;
UIKIT_EXTERN NSString *const ADD_WATER_GAL;
UIKIT_EXTERN NSString *const STR_TIME_LEFT_PLANT;
UIKIT_EXTERN NSString *const STR_TIME_ARRIVED_JOB;
UIKIT_EXTERN NSString *const STR_TIME_START_POUR;
UIKIT_EXTERN NSString *const STR_TIME_FINISHED_POUR;
UIKIT_EXTERN NSString *const STR_TIME_LEFT_JOB;
UIKIT_EXTERN NSString *const STR_TIME_ARRIVED_PLANT;
UIKIT_EXTERN NSString *const STR_TIME_ELAPSED;
UIKIT_EXTERN NSString *const C_TIME_LEFT_PLANT;
UIKIT_EXTERN NSString *const C_TIME_ARRIVED_JOB;
UIKIT_EXTERN NSString *const C_TIME_START_POUR;
UIKIT_EXTERN NSString *const C_TIME_FINISHED_POUR;
UIKIT_EXTERN NSString *const C_TIME_LEFT_JOB;
UIKIT_EXTERN NSString *const C_TIME_ARRIVED_PLANT;
UIKIT_EXTERN NSString *const C_TIME_ELAPSED;
UIKIT_EXTERN NSString *const ACCEPT_TERMS;
UIKIT_EXTERN NSString *const SIGN_NAME;
UIKIT_EXTERN NSString *const SIGNATURE;
UIKIT_EXTERN NSString *const LOGO_URL;
UIKIT_EXTERN NSString *const PLANT_ADDR;
UIKIT_EXTERN NSString *const EMAILS;
UIKIT_EXTERN NSString *const CUSTOM_EMAILS;
UIKIT_EXTERN NSString *const IS_GONING;
UIKIT_EXTERN NSString *const CURRENT_TIME_INDEX;
UIKIT_EXTERN NSString *const BATCH_WEIGHT;
UIKIT_EXTERN NSString *const HIDE_BATCH_WEIGHT;
UIKIT_EXTERN NSString *const REJECT_NAME;
UIKIT_EXTERN NSString *const REJECT_REASON;



UIKIT_EXTERN NSString *const DONT_NEED_BW;


@interface TicketList : NSObject<ASIHTTPRequestDelegate,DataSource,HttpRequestDelegate>
{
    ASINetworkQueue* normalQuene;
    NSMutableArray* data;
    //NSMutableDictionary* custom;
    NSMutableDictionary* memoryObject;
    
    ASIHTTPRequest* refresh_request;
    NSMutableArray* get_logo_requests;
    NSMutableArray* get_batchWeight_requests;
    NSMutableArray* get_plat_addr_requests;
    NSMutableArray* get_emails_requests;
    
    NSURLConnection* bwc;
    NSMutableData* bwd;
    long long bwid;
}
@property (nonatomic, readonly) NSArray* data;
//@property (nonatomic, readonly) NSMutableDictionary* custom;
@property (nonatomic, readonly) NSMutableDictionary* memoryObject;

- (void)saveCustomAndNotifyChange;

- (void)refresh;
@end
